<template>
  <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%">
    <el-table-column label="姓名" show-overflow-tooltip prop="linkManName"></el-table-column>
    <el-table-column label="职务" show-overflow-tooltip prop="post"></el-table-column>
    <el-table-column label="电话" show-overflow-tooltip prop="telePhone"></el-table-column>
    <el-table-column label="手机" show-overflow-tooltip prop="phone"></el-table-column>
    <el-table-column label="电子邮件" show-overflow-tooltip prop="emial"></el-table-column>
    <el-table-column label="创建日期" show-overflow-tooltip prop="creationTime"></el-table-column>
    <el-table-column label="操作" width="160">
      <template slot-scope="scope">
        <el-link
          icon="el-icon-edit"
          type="primary"
          style="margin-right: 15px;"
          @click="showAddLinkMan(scope.row)"
        >编辑</el-link>
        <el-link icon="el-icon-delete" type="danger" @click="deleteLinkMan(scope.row)">删除</el-link>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  props: ["tableData"],
  methods: {
    showAddLinkMan(row) {
      this.$emit("showAddLink", row);
    },
    deleteLinkMan(row) {
      this.$emit("deleteLinkMan", row);
    }
  }
};
</script>

<style>
</style>
